#include "GLScene.h"


void GLScene::renderScene(GLCamera& cam, int flags)
{
    glBeginScene3D();
    glPushMatrix();
    cam.apply();
    GLObject::render(flags);
    glPopMatrix();
    glEndScene3D();
}

int GLScene::pickSceneObjectId(GLCamera& cam, int x, int y, float sense)
{
    int r = -1;
    glBeginScene3D();
    glPushMatrix();
    cam.apply();
    r = GLObject::pickObjectId(x, y, sense);
    glPopMatrix();
    glEndScene3D();
    return r;
}

